package com.aiwei.tdjk.service;


import com.aiwei.tdjk.bean.Pager;
import com.aiwei.tdjk.dto.request.BookingContainerPagerRequest;
import com.aiwei.tdjk.entity.BookingContainer;

public interface BookingContainerService {

    /**
     * 分页查询
     * @param request
     * @return
     */
    Pager<BookingContainer> find(BookingContainerPagerRequest request);


    BookingContainer get(Long id);

    /**
     * 根据订单号查询租船订舱
     * @param saleOrderCode
     * @return
     */
    BookingContainer getBySaleOrderCode(String saleOrderCode);

    /**
     * 新增
     * @param bookingContainer
     * @return
     */
    int add(BookingContainer bookingContainer);

    /**
     * 更新
     * @param bookingContainer
     */
    void update(BookingContainer bookingContainer);

    /**
     * 删除
     * @param id
     */
    void delete(Long id);

    /**
     * 删除
     * @param id
     */
    void delete(Long[] id);



}
